package dancetwotiktokenumsmymongo

const (
	DanceRoomModelCpLogTypeCp       = 0 //cp
	DanceRoomModelCpLogTypeCancelCp = 1 //解散cp

	DanceRoomModelCpLogDoTypeAuto  = 0 //0:系统自动;1:管理后台;
	DanceRoomModelCpLogDoTypeAdmin = 1 //0:系统自动;1:管理后台;
)

type DanceRoomModelMarryLogEnums struct {
}

var DanceRoomModelMarryLogEnumsObject DanceRoomModelMarryLogEnums

func (e DanceRoomModelMarryLogEnums) LogType() []int {
	return []int{
		DanceRoomModelCpLogTypeCp,
		DanceRoomModelCpLogTypeCancelCp,
	}
}

func (e DanceRoomModelMarryLogEnums) LogTypeMap() map[int]int {
	m := make(map[int]int)
	for _, s := range e.LogType() {
		m[s] = s
	}
	return m
}

func (e DanceRoomModelMarryLogEnums) LogTypeString(tag int) string {
	switch tag {
	case DanceRoomModelCpLogTypeCp:
		return "组成CP"
	case DanceRoomModelCpLogTypeCancelCp:
		return "解散CP"
	default:
		return "未知"
	}
}

func (e DanceRoomModelMarryLogEnums) DoType() []int {
	return []int{
		DanceRoomModelCpLogDoTypeAuto,
		DanceRoomModelCpLogDoTypeAdmin,
	}
}

func (e DanceRoomModelMarryLogEnums) MarryDoTypeMap() map[int]int {
	m := make(map[int]int)
	for _, s := range e.DoType() {
		m[s] = s
	}
	return m
}

func (e DanceRoomModelMarryLogEnums) MarryDoTypeString(tag int) string {
	switch tag {
	case DanceRoomModelCpLogDoTypeAuto:
		return "自动"
	case DanceRoomModelCpLogDoTypeAdmin:
		return "后台操作"
	default:
		return "未知"
	}
}
